﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="selectGoodsList.aspx.cs" Inherits="WebSite.admin.order.selectGoodsList" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>福利点点通 </title>
    <link href="../css/skin.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
       <ext:PageManager ID="PageManager1" runat="server" />
      <ext:SimpleForm ID="extForm1" runat="server" BodyPadding="5px"   
            EnableBackgroundColor="false" Title="商品列表"  ShowHeader="false" >
              <Items>
            <ext:Panel ID="Panel2" ShowHeader="false"  CssClass="x-form-item" ShowBorder="false" Layout="Column" runat="server">
             <Items>
                <ext:Label ID="lblGoodsType"   runat="server" Text="&nbsp;&nbsp;商品类别："></ext:Label>
                <ext:DropDownList ID="ddlGoodsType"  runat="server" Width="120px"  Text="商品类别" ShowLabel="true" Label="商品类别"></ext:DropDownList>
                <ext:Label ID="lblPoints"  Width="70px"    runat="server" Text="&nbsp;&nbsp;福点数从："></ext:Label>
                <ext:NumberBox ID="txtPointsFrom"  runat="server" NoDecimal="true" Width="80px"   Text="" ShowLabel="true" Label="福点数从"></ext:NumberBox>
                <ext:Label ID="Label1"  Width="30px"    runat="server" Text="到："></ext:Label>
                <ext:NumberBox ID="txtPointsTo"  runat="server"  NoDecimal="true" Width="80px"  Text="" ShowLabel="true" Label="到"></ext:NumberBox>
                <ext:Label ID="lblKeywords"  Width="60px"  runat="server" Text="&nbsp;&nbsp;关键字："></ext:Label>
                <ext:TextBox runat="server" ID="txtKeywords"   MaxLength="100" Label="关键字" ></ext:TextBox>
                <ext:Button ID="btnSearch" Text="搜索"  CssClass="mleft mright" runat="server"  OnClick="btnSearch_Click"></ext:Button>
             </Items>
         </ext:Panel>
     </Items>   
   </ext:SimpleForm>
         <ext:Grid ID="Grid1" Title="查询结果" PageSize="50" ShowBorder="false"  CssClass="x-form-item"  Height="350px"  AllowPaging="true" SortColumn="goodsName" SortDirection="ASC"     
                        OnPageIndexChange="Grid1_PageIndexChange" ShowHeader="False" runat="server" EnableCheckBoxSelect="True"   AllowSorting="true"    IsDatabasePaging="true" 
                        DataKeyNames="goodsId,modelTypeId,points" OnSort="Grid1_Sort" EnableRowNumber="True">
        <Columns>
          <ext:BoundField Width="100px" ColumnID="goodsCode" SortField="goodsCode" DataField="goodsCode" DataFormatString="{0}"
                HeaderText="商品编号" />
            <ext:BoundField Width="200px" ColumnID="goodsName" SortField="goodsName" DataField="goodsName" DataFormatString="{0}"
                HeaderText="商品名称" />
              <ext:BoundField Width="100px" ColumnID="modelTypeName" SortField="modelTypeName" DataField="modelTypeName" DataFormatString="{0}"
                HeaderText="商品型号" />
          
            <ext:BoundField Width="100px" ColumnID="points" SortField="changePoints" DataField="points" DataFormatString="{0}"
                HeaderText="福点数" />
            <ext:BoundField Width="100px" ColumnID="goodsCount" SortField="goodsCount" DataField="goodsCount" DataFormatString="{0}"
                HeaderText="库存数" />
        </Columns>
    </ext:Grid>
         <ext:Button ID="btnSaveRefresh" Text="保存" runat="server" Icon="SystemSaveNew"  ValidateForms="SimpleForm1" OnClick="btnSaveRefresh_Click">
         </ext:Button>
    </form>
</body>
</html>
